﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MonoGame;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace TunnelsOfDeath.Managers
{
    class TextureManager
    {
        public void LoadTexture(ContentManager _cm, string _textureName)
        {
            try
            {
                Globals.Textures.Add(_cm.Load<Texture2D>(_textureName));
            }
            catch (ContentLoadException error)
            {

                Globals.Textures.Add(_cm.Load<Texture2D>("error"));
                System.Diagnostics.Debug.WriteLine(error.Message);
                
            }
            
        }
    }
}
